let vm=new Vue({
    el:'#main',
    data:{
        fee:{}
    },
    methods:{
        close:function () {
            let index = parent.layer.getFrameIndex(window.name); //获取窗口索引
            parent.layer.close(index);//通过父窗口layer对象关闭子窗口
        },
        doUpdate:function () {
            axios({
                url:'fee/doUpdate',
                method:'post',
                data: this.fee
            }).then(rs=>{
                if (rs.data.success) {
                    parent.layer.message=1;
                }else {
                    parent.layer.message=-1
                }
                this.close()
            })
        }
    },
    created:function () {
        this.fee=parent.layer.fee;
    }
})